package com.reder.practice.common.event;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

/**
 * 关注事件
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/09/23 19:59:29</p>
 */
@Getter
@Setter
@ToString
public class FollowEvent extends ApplicationEvent {

    // 被关注者 id
    private long userId;

    // 关注者 id
    private long followerId;

    public FollowEvent(long userId, long followerId) {
        super(followerId);
        this.userId = userId;
        this.followerId = followerId;
    }
}
